/*
* @Author: gavin
* @Date:   2017-12-20 13:21:32
* @Last Modified by:   gavin
* @Last Modified time: 2017-12-20 13:22:01
*/
import { Modal, notification, message } from 'antd';

export const ModalError = data => Modal.error(data);
export const NotiSuccess = data => notification.success({
  message: '成功',
  ...data
});
export const NotiError = data => notification.error({
  message: '失败',
  ...data
});
export const MsgError = data => message.error(data);
export const MsgWarning = data => message.warning(data);
export const MsgSuccess = data => message.success(data);
